package com.lipi.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lipi.common.utils.PageUtils;
import com.lipi.mall.product.entity.CategoryEntity;
import com.lipi.mall.product.vo.Catelog2VO;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author hecy
 * @email kuanih200@163.com
 * @date 2021-06-14 16:02:23
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> getCategoryWithTree();

    void removeEnumsByIds(List<Long> asList);

    /**
     * 传入第三层分类，获取其完整路径
     * @param catelogId
     * @return
     */
    Long[] getCategoryPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    /**
     * 获取所有的一级分类
     * @return
     */
    List<CategoryEntity> getCateorysLevel1();

    Map<String, List<Catelog2VO>> getCatalogJson();
}

